<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateCamSkinRecordsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('cam_skin_records', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('skin_record_id')->comment('肤质记录ID');
			$table->integer('wechat_user_id')->default(0)->comment('对应微信用户的ID，无则为0');
			$table->float('dark_circle', 8, 3)->comment('黑眼圈');
			$table->float('stain', 8, 3)->comment('色斑');
			$table->float('acne', 8, 3)->comment('粉刺 / 痘');
			$table->float('health', 8, 3)->comment('健康度');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('cam_skin_records');
	}

}
